#!/usr/bin/env bash


# 下载镜像

echo "down package filebeat 7.10.1"

echo "down package logstash 7.10.1"

echo "down package elasticsearch 7.10.1"

echo "down package kibana 7.10.1"



# 修改权限



# 优化服务参数
vim /etc/sysctl.conf
vm.max_map_count=655360
sysctl -p

vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 32000
* hard nproc 32000
* hard memlock unlimited
* soft memlock unlimited

vim  /etc/systemd/system.conf 
DefaultLimitNOFILE=65536
DefaultLimitNPROC=32000
DefaultLimitMEMLOCK=infinity